var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var skillHandler = require('../../../app/servers/user/handler/skillHandler');
var buildType = require('../../../app/consts/buildType');
var config = require('../../config');

suite('测试skillHandler', function () {
    suite('user.skillHandler.upgrade', function () {
        test('升级技能成功', function (done) {
            var skill_handler = new skillHandler();
            var msg = {};
            msg.skill_type = 1001;
            var session = {};
            session.uid = config.role_id;
            skill_handler.upgrade(msg, session, function () {
                done();
            });
        });
    });

    suite('user.skillHandler.select', function () {
        test('升级技能队列成功', function (done) {
            var skill_handler = new skillHandler();
            var msg = {};
            msg.select_skill_list = [1001];
            var session = {};
            session.uid = config.role_id;
            skill_handler.select(msg, session, function () {
                done();
            });
        });
    });
});
